# -*- coding: utf-8 -*-
"""
@author:AragakiNoob
@date:2019-5-10

"""
import jieba
import re
import os;

fs = open('sove.py', 'r', encoding='utf-8').read()

table = ['def', 'for', 'in', 'return', 'print', 'range']
words = jieba.lcut(fs)
fs2 = open('sove.py', 'w')
pas = ''
for i in range(0, len(words)):
    if words[i] in table:
        pass;
    else:
        words[i] = words[i].upper()
        pas = ''.join(words)
fs2.write(pas)
fs2.close()
